<div class="content_filtro">
    <div class="filtro">
        <form id="form_filtro" method="post" action="">            
            <i>Pesquisar</i>
            
            <input type="text" id="dtfiltro" name="dtfiltro" style="width:70px !important" class="data" placeholder="Data" value="<?php echo $this->dtfiltro?>" />
            
            <input type="text" id="nmfiltro" name="nmfiltro" placeholder="Nome" value="<?php echo $this->nmfiltro?>" />
            
            <input type="submit" value="buscar" name="buscar" class="btn-pdr">
            
        </form>
    </div>
</div>

<div class="content-list">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <table id="tlist">
        <thead>
            <tr>
                <th>Data Enc.</th>
                <th>Hora Enc.</th>
                <th>Lista</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { ?>
                <tr>
                    <td><?php echo Datetools::amd_dma($row['PUL_DATENC']); ?></td>
                    <td><?php echo Datetools::hora_hm($row['PUL_HORENC']); ?></td>
                    <td><?php echo $row['PUL_NOM']; ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['PUL_ID'])); ?>">Relatório</a><?php }?>
                        <?php if($this->per_del && $row['PUL_STA'] == 0){?><a class="btn-pdr" href="javascript:void(0);" onclick="list_delete('<?php echo $this->controller; ?>', <?php echo $row['PUL_ID'] ?>, $(this));">Deletar</a><?php } ?>
                    </td> 
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
<script>dataPicker($('#dtfiltro'));</script>